const elan = require("./config/elan");
const lh = require("./config/lh");

const theme = "elan";
const themeVar = {
  elan: elan.themeVars,
  lh: lh.themeVars,
};
const configData = {
  elan,
  lh,
};
module.exports = {
  // 产品主题名称
  theme: theme,
  themes: Object.keys(themeVar),
  themeVar: themeVar,
  // 图片资源地址
  imgBase: "https://img3.job1001.com/ypMp/elan/images/",
  imgBaseSelf: themeVar[theme]["img-base-self"],
  // 默认头像
  defalutAvatar: "https://img3.job1001.com/ypMp/yw/images/male.png",
  // 主题颜色、企业中心/个人中心头部底色
  primaryColor: themeVar[theme]["u-type-primary"],
  cNavColor: themeVar[theme]["company-nav-bg"],
  uNavColor: themeVar[theme]["user-nav-bg"],
  linearGradientBgColor: themeVar[theme]["bg-linear-gradient-button"],
  // 网站名称
  productName: configData[theme].productName,
  // 小程序名称
  selfName: configData[theme].selfName,
  // 直播子网类名
  liveType: configData[theme].liveType,
  // 子网id
  tradeId: configData[theme].tradeId,
  // 默认地区
  regionId: configData[theme].regionId,
  regionName: configData[theme].regionName,
  regionNameAll: configData[theme].regionNameAll,
  regionChild: configData[theme].regionChild,
  // 职位类别层级
  postLevel: configData[theme].postLevel,
  // 地区层级
  regionLevel: configData[theme].regionLevel,
  // 是否显示行业筛选等
  needTrade: configData[theme].needTrade,
  // 是否有热门职位
  haveRmdPost: configData[theme].haveRmdPost,
  // 首页职位列表模式，simple为普通热门职位推荐，normal添加筛选
  indexPostMode: configData[theme].indexPostMode,
  // 是否显示金刚区
  indexShowKingKong: configData[theme].indexShowKingKong,
  // 首页金刚区
  indexKingKong: configData[theme].indexKingKong,
  // 非企业账号提示语
  notCompanyTips: configData[theme].notCompanyTips,
  // 接口版本
  version: configData[theme].version,
  // 接口user替换
  user: configData[theme].user,
  // 接口tradeid插入
  tradeInsideArr: [
    {
      name: "sendLoginCodeToMobile",
      prop: "condition",
    },
    {
      name: "sendBindCode",
      prop: "condition",
    },
    {
      name: "registerAndBindForXCX",
      prop: "conditionArr",
    },
    {
      name: "resumeSendOut",
      prop: "condition",
    },
  ],
  tradeOutsideArr: ["wxLogin", "getUnionID"],
};
